package com.yinile.zc03.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.yinile.zc03.domain.MidBookAuthor;

public interface MidBookAuthorRepository extends JpaRepository<MidBookAuthor, String>,
		JpaSpecificationExecutor<MidBookAuthor> {
	@Query("select t from MidBookAuthor t where t.id.authorId in(:authorIds)")
	List<MidBookAuthor> withAuthorIdsQuery(@Param("authorIds") List<String> authorIds);
}
